ABS
Section: MINTLIB LIBRARY FUNCTIONS
(3)
Updated: 3 March 1993
Index
Return to Main Contents
NAME
abs, labs - return integer or long absolute value
SYNOPSIS
#include <stdlib.h>
int abs(int i);
long labs(long i);
DESCRIPTION
abs returns the absolute value of its integer operand.
labs returns the absolute value of its long operand.
SEE ALSO
fabs(3)
CAVEAT
In two's-complement representation, the absolute value of the
negative integer or long with the largest magnitude is undefined.
This error is not trapped in this implementation.
Index
- NAME
-
- SYNOPSIS
-
- DESCRIPTION
-
- SEE ALSO
-
- CAVEAT
-
This document was created by
man2html,
using the manual pages.
Time: 11:14:50 GMT, June 22, 2025